#include("../../comm/FormHead.html")
<div id="main">
    <form action="" class="layui-form margin-10" lay-filter="form">
        <input type="hidden" id="actions" name="actions" value="#(form.actions)">
        #(token??)
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">任务ID</label>

                    <div class="layui-input-block">
                        <input type="text" readonly name="task_id" placeholder="自动生成" value="#(task.task_id)" class="layui-input input-readonly">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">任务名</label>

                    <div class="layui-input-block">
                        <input type="text" name="task_name" placeholder="请输入任务名"
                               value="#(task.task_name)" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">表达式</label>

                    <div class="layui-input-block">
                        <input type="text" name="task_cron" placeholder="请输入表达式"
                               value="#(task.task_cron)" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">任务类</label>

                    <div class="layui-input-block">
                        <input type="text" name="task_class" placeholder="请输入任务类"
                               value="#(task.task_class)" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">加载</label>

                    <div class="layui-input-inline" style="width:80px;">
                        <input type="checkbox" lay-skin="switch" value="1" name="is_auto" lay-text="自动|手动" #(task.is_auto_status)/>
                    </div>
                    <label class="layui-form-mid left10">日志</label>

                    <div class="layui-input-inline">
                        <input type="checkbox" lay-skin="switch" value="1" name="is_log" lay-text="记录|" #(task.is_log_status)/>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>

                    <div class="layui-input-block">
                        <textarea name="task_desc" placeholder="请输入备注" class="layui-textarea" style="height:60px">#(task.task_desc)</textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="Submit1">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    layui.use(['form', 'myTool'], function () {
        layui.form.on('submit(Submit1)', function (data) {
            layui.myTool.post("ModifySysTaskApi", {postdata: JSON.stringify(data.field)}, function () {
                parent.layer.closeAll();
            });
            return false;
        });
    });
    //-->
</SCRIPT>
</body>
</html>